package se.wangs.command.concretecommand;

import se.wangs.command.Command;
import se.wangs.command.executor.GarageDoor;

/**
 * -- coding: UTF-8 -- *
 *
 * @author wangs
 * @date 2023/12/14 15:58
 * @description 车库门开关
 */
public class GarageDoorOpenCommand implements Command {

    private GarageDoor garageDoor;

    public GarageDoorOpenCommand(GarageDoor garageDoor) {
        this.garageDoor = garageDoor;
    }

    @Override
    public void execute() {
        garageDoor.lightOn();
    }

    @Override
    public void undo() {

    }
}
